Comments (5)
This can be implemented in lua, but it's way faster to do it in c++, because of the time it takes to call an MTA function(3k-12k ms / 10m calls, seems like functions which use argStream.nextIs*() are slower, especially Vector3.create which takes 12k ms / 10m).
from mtasa-blue.
How frequently are you writing to files, and how large are your files (what are you writing?), that the latency is becoming a problem?
from mtasa-blue.
I'll write a lot because the way I save the data of my custom interiors.
It's not a problem for now(since the server hasn't opened yet), but it may became a problem after a while.
I'd make the mentioned functions, but I'm lost a little bit with the File class(can't even figure out how it gets it's size 😂)
from mtasa-blue.
can you please tell me more about File.writeall
? How many parameters will this function take? I'm thinking that we can pass a Lua table to the function, and it writes all the data quickly to the file.
from mtasa-blue.
Actually, it should be called 'writeAll'
Nah, I thought it should take the same as write, but before writing it should clean the file up, so only the strings passed to it'll be written, or better:
Just merge it with the current 'write' function and add a 'bClear' argument.
from mtasa-blue.
Related Issues (20)
- MTA error CL22 (Antivirus blocking) HOT 1
- Lua debugger HOT 6
- New event: getAllEventHandler
- onResourceLoadStateChange not triggering HOT 4
- Add new event: onResourceStateChange HOT 2
- svgSetSize / svgGetSize bug with float numbers HOT 1
- Upgrade GitHub actions to support Node.js 20
- onClientMarkerHit edit
- Improved Base Encoding & Decoding
- Water spark effects from water cannons cause marker flickering
- Only 3 water cannons on Fire Truck can be used at the same time HOT 3
- Freeing custom id of an element right after it's destroyed is causing crash
- Unable to get remaining ammo (as shown by HUD) HOT 4
- Incorrect colors for 3D draws HOT 6
- Not blended custom animation HOT 2
- dxCreateFont randomly creates fonts with wrong characters HOT 5
- CEF browser crashes when zooming in with leaflet.js HOT 4
- issues with createBuilding HOT 5
- createBuilding crash 0x000096AD HOT 10
- Buildings are not counted to performance stats HOT 2
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 mtasa-blue.