aboutsummaryrefslogtreecommitdiff
path: root/ks_index.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-09-16 08:13:42 -0400
committerRob Austein <sra@hactrn.net>2016-09-16 08:13:42 -0400
commite99f94d6b77641fc21830e14ef0df46766573bc4 (patch)
treeb24c50f3410d23fd3f20f3bb2ace2980e1c6c21f /ks_index.c
parent38c4b787fa7c1f5e7fbf810cdda136621dd743b7 (diff)
Revised ks_flash. Compiles, not yet tested.
Diffstat (limited to 'ks_index.c')
-rw-r--r--ks_index.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ks_index.c b/ks_index.c
index f506a32..b35d5e0 100644
--- a/ks_index.c
+++ b/ks_index.c
@@ -216,6 +216,15 @@ hal_error_t hal_ks_index_delete(hal_ks_index_t *ksi,
}
/*
+ * Might want a hal_ks_index_replace(), which would be an efficiency
+ * hack replacement (roughly 2x) for a delete followed by an add with
+ * the same name. Implementation would be to find the old existing
+ * block, pull the first block off the free list, sliding the free
+ * list down, drop the new block in instead of the old, put the old
+ * block at the end of the free list, and return the new block.
+ */
+
+/*
* Local variables:
* indent-tabs-mode: nil
* End: