News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Saving code-completion cache is slowwwww

Started by 280Z28, December 15, 2005, 10:37:22 PM

Previous topic - Next topic

280Z28

I'm writing to a network drive if that makes any difference (I think it makes all the difference). The overall file size is small (3.49mb) but it took ~5 minutes to save. CPU usage is low and I have plenty of memory free which leads me to believe the file is being written in small segments. Small writes to a network drive can have serious latency issues. I suggest creating a "large" memory buffer and writing the entire cache to it, then flushing the cache to disk in one shot. The cbCache file is not very big compared to the amount of memory available these days. If that doesn't work, maybe a fixed 5mb memory buffer that is flushed when it fills up?

It just took 10 minutes to close my workspace due to saving the code-completion cache for 4 projects. Total size of the 4 caches is a combined 7.2mb.

Edit: All 4 reloaded when I opened the project in under 5 seconds combined. :) So yeah that's acceptable.
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
Check out The Sam Zone :cool:

rickg22

The class i'm working on will save those long delays. It'll be a couple of weeks before it's ready tho.

280Z28

Quote from: rickg22 on December 15, 2005, 11:28:13 PM
The class i'm working on will save those long delays. It'll be a couple of weeks before it's ready tho.

Sweet, that's all I needed to hear.  8) Take your time and shoot me a message when you're ready for me to test it again. :)
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
Check out The Sam Zone :cool:

rickg22

OK, but as a general recommendation, don't save projects in network drives. Are you sure there isn't an alternative?

280Z28

Quote from: rickg22 on December 16, 2005, 01:30:12 AM
OK, but as a general recommendation, don't save projects in network drives. Are you sure there isn't an alternative?

Yeah it's at work and they have rules. I do things differently and have no problems.

I'm sure I'm not the only one using a network drive so other people will be happy to see the results of your changes as well. :)
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
Check out The Sam Zone :cool: