Home Download Buy Blog Forum Support

Dev Build 2127

Dev Build 2127

Postby jps on Fri Sep 30, 2011 10:50 am

Dev Build 2127 is out now, with a collection of tweaks - details are in the changelog
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2127

Postby gnal on Fri Sep 30, 2011 1:30 pm

Folder expanding finally ... THANKS!!!!!!!! Been waiting for that one :geek:
gnal
 
Posts: 4
Joined: Fri Sep 30, 2011 1:25 pm

Re: Dev Build 2127

Postby rchl on Sat Oct 01, 2011 12:02 pm

Not sure if that's a new problem but seems like Sublime is leaking memory. I can reproduce around 15MB leaked on each invocation of CMD+P and inputing some random characters to lookup few different files. After longer session ST2 was using around 700MB of RAM.

I have two quite big directories added in the side panel and around 30 files open + some bundles installed. If you can't reproduce easily then I can try nailing it down by trying clean profile and such.

Mac OSX Lion.
rchl
 
Posts: 148
Joined: Fri Mar 04, 2011 11:02 pm

Re: Dev Build 2127

Postby jps on Sat Oct 01, 2011 3:14 pm

rchl wrote:Not sure if that's a new problem but seems like Sublime is leaking memory

Can you try without any plugins installed? I'm not seeing this behaviour.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2127

Postby rchl on Sat Oct 01, 2011 5:18 pm

I can't pinpoint it to any specific plugin and it seems to happen in pristine configuration too. The effect is not as dramatic then though. Plugins appear to amplify the problem.

I've reproduced by adding directory to the sidebar with large number of files (thousands), pressed CMD+P and held arrow down to scroll through every file. Memory usage slowly but consistently raises then.

I can reproduce this both on Mac and Windows. Build 2127.
rchl
 
Posts: 148
Joined: Fri Mar 04, 2011 11:02 pm

Re: Dev Build 2127

Postby eikaramba on Sat Oct 01, 2011 11:47 pm

i can confirm this. Just browsing through the files increases memory footprint. Maybe this is normal, cause he needs more memory, but on the other hand after closing the GO-TO-Anything dialog no memory is freeded up.
windows, 2127, a normal wordpress folder structure loaded in the sidebar. Just scrolling through the files.
eikaramba
 
Posts: 21
Joined: Thu Mar 10, 2011 1:06 am

Re: Dev Build 2127

Postby jps on Sun Oct 02, 2011 3:25 am

A small increase in memory usage while holding the down arrow in the Goto Anything dialog is expected - memory fragmentation will occur in this scenario. There will be an initial increase in memory usage due to syntax definition loading and glyph cache population, and further increases after a certain point should be small and mostly fragmentation related. I believe there are no memory leaks in this scenario (a cursory valgrind run agrees). Plugins can change this dramatically.

Just to be clear, loading thousands of files with no memory fragmentation is not something I'm aiming to achieve.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2127

Postby rchl on Sun Oct 02, 2011 11:59 am

1. Download attached file
2. Extract and place 5 copies of it in the "User" directory.
3. Press Cmd/Ctrl+p and hold down for a while

Note how fast memory usage increases and compare with these 5 copies removed (or "sublime.set_timeout(functools.partial(callback, *args, **kwargs), 0)" line commented out).
With these 5 copies memory usage increases much faster than without them.

Funny thing about this script is that none of its code (including the line I've suggested commenting out) should run unless explicitly invoked, as far as I can see.
Attachments
git.py.zip
(4.62 KiB) Downloaded 117 times
rchl
 
Posts: 148
Joined: Fri Mar 04, 2011 11:02 pm

Re: Dev Build 2127

Postby Jay Levitt on Sun Oct 02, 2011 4:52 pm

Reindent still broken ☹ Reindenting my reindent keymap results in this:

Code: Select all
[
{ "keys": ["ctrl+alt+super+["], "command": "reindent" }
]
Jay Levitt
 
Posts: 52
Joined: Sun Sep 25, 2011 6:22 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 28 guests