Giter Club home page Giter Club logo

Comments (7)

vzsg avatar vzsg commented on May 10, 2024 1

I might do a stress test again later, but I'm sure the situation improved much since January. Definitely no need to keep this open.

from mysql-kit.

vzsg avatar vzsg commented on May 10, 2024

Further experiments show that replacing the byte-decoded UInt8 sequence -> String conversion with String(validatingUTF8:) brings up the speed to a tolerable level while reducing memory usage.

Unfortunately, one cannot assume with MySQL that the data doesn't contain ASCII NULLs inside, so it's not a viable solution...

from mysql-kit.

hhanesand avatar hhanesand commented on May 10, 2024

@vzsg I'd like to investigate this, but how do I go about verifying if the result set is leaked or not?

from mysql-kit.

vzsg avatar vzsg commented on May 10, 2024

I was using Xcode's Debug Navigator for tracking total memory use – if it's not a flat graph, something is wrong – then Memory Graph and Instruments to look into what's leaking.

All of this was done with a simple command line application whose only dependency was vapor/mysql.

from mysql-kit.

BrettRToomey avatar BrettRToomey commented on May 10, 2024

Any updates on this?

from mysql-kit.

hhanesand avatar hhanesand commented on May 10, 2024

No, I haven't gotten to this. Thinking we should revisit this after 2.0 comes out of beta

from mysql-kit.

tanner0101 avatar tanner0101 commented on May 10, 2024

We've moved to a much more efficient makeString() implementation in Vapor 2. https://github.com/vapor/bits/blob/master/Sources/Bits/ByteSequence%2BConversions.swift#L4-L10.

Going to close this issue for now since a good portion of it has been addressed and the issue of performance is pretty general. Please feel free to open a new issue for any specific performance issues.

from mysql-kit.

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.