Closed L3P3 closed 1 year ago
Erstens wird die gesamte Datei jedes Mal in JSON umgewandelt und zurück. (WTF)
Zweitens wird für jeden Chunk die gesamte Datei durchgegangen und jedes Byte einzeln angefügt, obwohl es extra für sowas buffer.slice(start, end) gibt!
buffer.slice(start, end)
aua das wuste ich nicht
https://github.com/LFF5644/socketTCP/commit/fe4b42984c36abe4e7782d5d50a513dc5b26ddeb
Erstens wird die gesamte Datei jedes Mal in JSON umgewandelt und zurück. (WTF)
Zweitens wird für jeden Chunk die gesamte Datei durchgegangen und jedes Byte einzeln angefügt, obwohl es extra für sowas
buffer.slice(start, end)
gibt!