Author Topic: Saving code-completion cache is slowwwww  (Read 11088 times)

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Saving code-completion cache is slowwwww
« on: December 15, 2005, 10:37:22 pm »
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.
« Last Edit: December 15, 2005, 10:40:28 pm by 280Z28 »
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Saving code-completion cache is slowwwww
« Reply #1 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.

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: Saving code-completion cache is slowwwww
« Reply #2 on: December 15, 2005, 11:48:59 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:

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Saving code-completion cache is slowwwww
« Reply #3 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?

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: Saving code-completion cache is slowwwww
« Reply #4 on: December 16, 2005, 01:32:51 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: