Coder Social home page Coder Social logo

Comments (8)

shargon avatar shargon commented on June 14, 2024

Thanks for this tests @superboyiii , this will helps to find performance issues

from neo-modules.

lock9 avatar lock9 commented on June 14, 2024

@superboyiii Hi! Is this solved?

from neo-modules.

shargon avatar shargon commented on June 14, 2024

@superboyiii we have the same issue with import?

from neo-modules.

superboyiii avatar superboyiii commented on June 14, 2024

@shargon No, it's because of that exporting block will write data straightly into memory which will cause overflow if your memory isn't large enough. But Import doesn't have this mechanism. Tom has made some effective fixes on this issue.

from neo-modules.

shargon avatar shargon commented on June 14, 2024

I think that the problem is here

https://github.com/neo-project/neo-plugins/blob/1c91346338c78537bec2760adfb363f3eb1619f5/ImportBlocks/ImportBlocks.cs#L84

Snapshot is a cache, and these blocks still on memory until the snapshot is disposed.
The best solution is create a snapshot for every block. Or add a new method, GetWithoutCache

from neo-modules.

shargon avatar shargon commented on June 14, 2024

@superboyiii could you told Tom to make a Pull request? also if he can join the two logics will be great!

https://github.com/neo-project/neo-plugins/blob/1c91346338c78537bec2760adfb363f3eb1619f5/ImportBlocks/ImportBlocks.cs#L63

from neo-modules.

shargon avatar shargon commented on June 14, 2024

I see that is already done! :)
#135

from neo-modules.

ZhangTao1596 avatar ZhangTao1596 commented on June 14, 2024

Will do

from neo-modules.

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.