Subscribe

Weak reference cache design

You are viewing a single message from this topic. View all messages.

  1. 2005-08-23 10:48:39 PDT
    OK - TestPerformance is not getting run with the technique I'm using. Good catch.

    Running it manually, I am getting the out of memory error that you are seeing. The problem is that the test is invalid. It does not call commit(), so everything is getting stored up in one huge transaction.

    Fix is to insert a commit() every XXX insertions. You'll probably want to add this to all tests in the class.


    I agree that a restructuring of the unit test suites to make the differentiation between performance and correctness makes sense.

    - K
Jump To:
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.