Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce cursor memory usage #83

Open
williballenthin opened this issue Jul 21, 2020 · 1 comment
Open

reduce cursor memory usage #83

williballenthin opened this issue Jul 21, 2020 · 1 comment
Milestone

Comments

@williballenthin
Copy link
Owner

I also detected the single test method consumes 11GB memory, when running the tests with python2.7. Amazing!

@slow
@kern32_test()
def test_cursor_enum_all_asc(kernel32_idb, version, bitness, expected):
    minkey = kernel32_idb.id0.get_min().key
    cursor = kernel32_idb.id0.find(minkey)
    count = 1
    while True:
        try:
            cursor.next()
        except IndexError:
            break
        count += 1

    assert kernel32_idb.id0.record_count == count

Figure_test_idb_test_cursor_enum_all_asc_py27

Originally posted by @imbillow in #81 (comment)

@williballenthin
Copy link
Owner Author

i suspect something like the page cache is not being used correctly and garbage is not getting free'd. need to go through the traversal code with a fine-toothed comb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants