Home Download Buy Blog Forum Support

Dev Build 3029

Re: Dev Build 3029

Postby jbjornson on Mon Apr 22, 2013 2:14 pm

bizoo wrote:My ST3 doesn't doesn't detect the update, is it working for you ?
startup, version: 3028 windows x64 channel: dev


I manually ran the "Check for updates..." option under the "Help" menu...
jbjornson
 
Posts: 347
Joined: Tue Oct 27, 2009 4:25 pm
Location: Zurich, Switzerland

Re: Dev Build 3029

Postby krur on Mon Apr 22, 2013 2:15 pm

the startup time has become so fast that i think it's unbelievable that the 99% of other apps are so slow!

here everything works fines.. also the Package manager (i'm using Git trunk)
KRUR studio
using Sublime Text for developing knowledge, interaction, sense, and fun
krur
 
Posts: 16
Joined: Fri Nov 09, 2012 6:25 am
Location: earth.italy.florence.hills

Re: Dev Build 3029

Postby bizoo on Mon Apr 22, 2013 2:20 pm

jbjornson wrote:
bizoo wrote:My ST3 doesn't doesn't detect the update, is it working for you ?
startup, version: 3028 windows x64 channel: dev


I manually ran the "Check for updates..." option under the "Help" menu...

Done that, but "no update available".
It worked flawlessly with previous updates.
bizoo
 
Posts: 876
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 3029

Postby jps on Mon Apr 22, 2013 2:23 pm

I wasn't happy with startup times on my OS X dev machine last week, so I spent some more time looking at it. Startup speed with ~500 files open was about 450ms, which is just enough to feel slow.

After some profiling, the culprits were:

- Font rasterisation. When creating fonts, the ASCII glyphs were eagerly cached, allowing faster lookups (array lookup vs hash table lookup for non-ascii glyphs). The faster lookup is important, but the eager glyph creation isn't: for the cost of one well predicted branch, the ASCII glyphs can be lazily generated. This alone saved about 80ms of startup time for my test case.
- Additional laziness during session restore. Moved some work that was being done per-file during session restore to be done once at the end of session restoration. Saved a small amount of time.
- Faster settings lookup. An unexpectedly large amount of time was being spend applying settings to view objects. Firstly, it was being done too frequently, so I reduced that. The next item was that each lookup was triggering a memory allocation, which is a common pitfall of using a std::map in C++ keyed by strings. Fixing that helped a little too.

After the above and a few other things, the test case went from ~450ms to a bit above 300ms. Aside from the font rasterisaion changes, most of the improvements should only be important if you have a large number of files open. Last time I was benchmarking startup times, it was with a much smaller number of open files, and the ASCII glyph lookup optimisation hadn't been implemented.

You should generally see better numbers than 300ms for a warm startup, for example, on my Windows dev machine, which has much less than 500 files open, startup times are around 80ms.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 3029

Postby jps on Mon Apr 22, 2013 2:27 pm

guillermooo wrote:How's the autoupdater dealing with proxies? Does it read env vars?

We use wininet.dll on Windows, which is AFAIK the same mechanism that Internet Explorer uses. It supports whatever proxy settings the system is setup with, including any crazy proxy auto configuration. NSURLConnection is used on OS X, which also makes use of the system proxy settings.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 3029

Postby bizoo on Mon Apr 22, 2013 2:39 pm

bizoo wrote:
jbjornson wrote:
bizoo wrote:My ST3 doesn't doesn't detect the update, is it working for you ?
startup, version: 3028 windows x64 channel: dev


I manually ran the "Check for updates..." option under the "Help" menu...

Done that, but "no update available".
It worked flawlessly with previous updates.

jps, do you need some info to debug this ?
Otherwise I'll download the install from the website.
bizoo
 
Posts: 876
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 3029

Postby bizoo on Mon Apr 22, 2013 2:43 pm

Looking at the console (3028), I noticed these lines:
Code: Select all
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
unknown include #documentation
launching: /C/Program Files/Sublime Text 3/plugin_host.exe

Look like it's before the plugins are loaded, so it probably come from core ST3.
bizoo
 
Posts: 876
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 3029

Postby guillermooo on Mon Apr 22, 2013 2:58 pm

wuub wrote:
guillermooo wrote:No, seriously, how'd you make it that much faster to startup?


http://thedailywtf.com/Articles/The-Speedup-Loop.aspx ;)


:)

So that means we can look forward to further speed-ups thanks to premature de-optimization...
guillermooo
 
Posts: 727
Joined: Thu Jul 23, 2009 9:06 am

Re: Dev Build 3029

Postby jps on Mon Apr 22, 2013 3:33 pm

There are issues with this build, I've taken it down for the moment.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 3029

Postby adzenith on Mon Apr 22, 2013 3:50 pm

jps wrote:There are issues with this build, I've taken it down for the moment.

Are they fixed? I've just updated to it...
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 15 guests