Comments (7)
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.
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.
@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.
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.
Any updates on this?
from mysql-kit.
No, I haven't gotten to this. Thinking we should revisit this after 2.0 comes out of beta
from mysql-kit.
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)
- Custom JSONDecoder HOT 1
- Decoding rows with null values to optionals fails
- 'SQLEnumSyntax' and 'SQLAlterTableSyntax' missing in MySQL-kit 4.0.0-beta.3.3 HOT 1
- Value of type 'DatabaseQuery' has no member 'idKey' - FluentMySQLDriver 4.0.0-beta.3 HOT 1
- FluentMySQLDriver crashes when saving dates HOT 4
- Build error on Swift CLI project HOT 4
- Cannot decode String from extracted JSON value
- Error when selecting from database HOT 1
- SimpleQuery fails decoding data version : +3.0.0 HOT 4
- conversion error should include data in question HOT 1
- Support encoding, and collation for database, table, and column HOT 4
- `.text` creates a VARCHAR(255) column HOT 6
- Crash on any mysql query HOT 1
- Rakan
- Question: how are broken connections handled by the pool? HOT 4
- Hostname Validation Error HOT 2
- hard to use in readme's code such as ... HOT 6
- SSH connection HOT 1
- Add api to support high level transaction
- Connection CharacterSet is incorrectly determined HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql-kit.