Unified · Split
| @@ -26,21 +26,8 @@ Comparison to id3lib and taglib: · 25 unmodified lines | |||
| 26 | | speed | ultra-fast | slow | fast | | 26 | | speed | ultra-fast | slow | fast | |
| 27 | | tag writing | no, not a goal | yes | yes | | 27 | | tag writing | no, not a goal | yes | yes | |
| 28 | 28 | ||
| 29 | CPU time (784 files: mp3, ogg, flac): | ||
| 30 | |||
| 31 | | | libtags | taglib | | ||
| 32 | |:---------------|:-----------------|:-----------------| | ||
| 33 | | files cached | real 0m0.027s | real 0m0.155s | | ||
| 34 | | | user 0m0.014s | user 0m0.102s | | ||
| 35 | | | sys 0m0.012s | sys 0m0.053s | | ||
| 36 | | | | | | ||
| 37 | | cache dropped | real 0m1.158s | real 0m1.628s | | ||
| 38 | | | user 0m0.024s | user 0m0.211s | | ||
| 39 | | | sys 0m0.132s | sys 0m0.187s | | ||
| 40 | |||
| 41 | ## Usage | 29 | ## Usage |
| 42 | 30 | ||
| 43 | Just compile it to an archive (`.a`) and link to your program. Use it in your code | 31 | `tags.h` is API which contains the documentation. |
| 44 | by including `tags.h`, that's the API. Documentation is in the header. | ||
| 45 | 32 | ||
| 46 | See `examples/readtags.c`. You can compile it on Linux like so: `gcc examples/readtags.c *.c -I. -o readtags`. | 33 | `examples/readtags.c` is a simple example that reads and prints out tags of the files specified on the command line. |