aboutsummaryrefslogtreecommitdiff
path: root/TODO
diff options
context:
space:
mode:
Diffstat (limited to 'TODO')
-rw-r--r--TODO31
1 files changed, 11 insertions, 20 deletions
diff --git a/TODO b/TODO
index 278f9ad..60562e5 100644
--- a/TODO
+++ b/TODO
@@ -1,21 +1,12 @@
-DONE Try to improve 'sameStr' by maybe not having to check s2[i2]
-When developed more, check if its better to us "strInTags" or "BM" for applicable uses
-Measure performance with
- struct timespec t0, t1;
- if(timespec_get(&t0, TIME_UTC) != TIME_UTC) {
- printf("Error in calling timespec_get\n");
- exit(EXIT_FAILURE);
- }
-
- //measure these two
- int a = strInTags(str, l, "percent", 7, ';');
- int a = BM("percent", 7, str, l);
-
- if(timespec_get(&t1, TIME_UTC) != TIME_UTC) {
- printf("Error in calling timespec_get\n");
- exit(EXIT_FAILURE);
- }
- // Calculate the elapsed time
- double diff = (double)(t1.tv_sec - t0.tv_sec) + ((double)(t1.tv_nsec - t0.tv_nsec)/1000000000L);
- printf("Elapsed time: %lf seconds\n", diff);
+Try different hashing functions (current: crc64), e.g murmur
+Change DB model from struct row
+ typedef struct{
+ char path[MAXPATH];
+ char tags[MAXTAGS];
+ uint16_t lenTags;
+ uint16_t numTags;
+ } row;
+to tables of ids
+ images[] tags[] images:tags[]
+DONE Try to improve 'sameStr' by maybe not having to check s2[i2]