CodeEditApp / CodeEditApp/CodeEditTextView

🐞 Attachments Storage Performance

Aperta
#94 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Swift
Stelle
182
Fork
54
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Description

With the new [text attachments API ](https://github.com/CodeEditApp/CodeEditTextView/pull/93), we're introducing a potential performance pitfall in the attachment storage object.

Right now, it stores attachments in an array ordered by range start location. This is fine for querying, as we can do a simple binary search to find attachments. However insertion and removal could be improved as they're both `O(N)` due to array modification performance.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.