CodeEditApp / CodeEditApp/CodeEditTextView

🐞 Attachments Storage Performance

Ouverte
#94 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Swift
Étoiles
182
Forks
54
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### 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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.