Coder Social home page Coder Social logo

OutOfMemoryException about dawgsharp HOT 5 CLOSED

bzaar avatar bzaar commented on May 29, 2024
OutOfMemoryException

from dawgsharp.

Comments (5)

bzaar avatar bzaar commented on May 29, 2024

Have you tried running this code in a 64 bit process?

On Thu, 6 Oct 2016, 08:06 RalfSmith, [email protected] wrote:

I am trying this simple piece of code, for benchmarking purposes, but I
get an OutOfMemoryException when reaching around 350K elements inserted.

DawgBuilder dawgBuilder = new DawgBuilder();
for (int i = 0; i < 10000000; i++)
{
dawgBuilder.Insert(Guid.NewGuid().ToString(), true);
}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#9, or mute the thread
https://github.com/notifications/unsubscribe-auth/AD15-oFs97mcCjCDrufkVn9mydTHutVXks5qxJ3agaJpZM4KPnbY
.

from dawgsharp.

bzaar avatar bzaar commented on May 29, 2024

Also, this class is built to store natural language strings efficiently.
Using it with Guids will not give you the benefits this class was designed
to provide.

On Thu, 6 Oct 2016, 09:53 Sergey Slepov, [email protected] wrote:

Have you tried running this code in a 64 bit process?

On Thu, 6 Oct 2016, 08:06 RalfSmith, [email protected] wrote:

I am trying this simple piece of code, for benchmarking purposes, but I
get an OutOfMemoryException when reaching around 350K elements inserted.

DawgBuilder dawgBuilder = new DawgBuilder();
for (int i = 0; i < 10000000; i++)
{
dawgBuilder.Insert(Guid.NewGuid().ToString(), true);
}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#9, or mute the thread
https://github.com/notifications/unsubscribe-auth/AD15-oFs97mcCjCDrufkVn9mydTHutVXks5qxJ3agaJpZM4KPnbY
.

from dawgsharp.

RalfSmith avatar RalfSmith commented on May 29, 2024

I will compile it as x64, and let you know. I read in the documentation the remark about the benefits of storing words, but I wanted (needed) to create a testing environment for different data structures as neutral as possible.

Thank you very much for your extremely fast response!

from dawgsharp.

bzaar avatar bzaar commented on May 29, 2024

You're welcome. But keep in mind that whatever benchmarks you do on Guids
may not reflect the timings on natural language words. I would highly
recommend testing on data that you want to use in production.

Also, can you post your benchmark results here?

On Thu, 6 Oct 2016, 10:23 RalfSmith, [email protected] wrote:

I will compile it as x64, and let you know. I read in the documentation
the remark about the benefits of storing words, but I wanted (needed) to
create a testing environment for different data structures as neutral as
possible.

Thank you very much for your extremely fast response!


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#9 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AD15-vNfEKs8pFN4dfCodZeVfpJ_FiIFks5qxL4ZgaJpZM4KPnbY
.

from dawgsharp.

bzaar avatar bzaar commented on May 29, 2024

Hi @RalfSmith,

How did the testing go? Did it work in x64?

from dawgsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.