Post B5MgBpcFuSQQE8m1gG by ariadne@social.treehouse.systems
 (DIR) More posts by ariadne@social.treehouse.systems
 (DIR) Post #B5Mg0AZQAzZ1jyt3Nw by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       got rid of the tight getc/ungetc nonsense in pkgconf's fgetline function.  now it uses fgets with a 4KB buffer.  roughly ~30% performance improvement when running tests.
       
 (DIR) Post #B5Mg4lcSN4KlnvV0BU by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       yes, i am aware u-config uses mmap i/o.  i am not convinced mmap i/o actually gets you anything with an RFC822-derived message format.
       
 (DIR) Post #B5MgBpcFuSQQE8m1gG by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       @dysfun overall.  i did not originally write pkgconf to be fast, i wrote it to be explainable
       
 (DIR) Post #B5MgIiB3xrODBSKq4u by cb@social.treehouse.systems
       0 likes, 0 repeats
       
       @ariadne the u-config guy had a very sketchy idea of portable C I/O last I checked too, so
       
 (DIR) Post #B5MgQFsT4CanjJEb4K by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       @dysfun i mean, it was faster than the original one.  but that is mostly because pkgconf only falls back to parsing the entire pkg-config database when it cannot find a direct provider of a dependency.
       
 (DIR) Post #B5MgV7U7hKYv9GAQ3E by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       @cb fgets is portable *shrug*
       
 (DIR) Post #B5Mgem3EF7xrZJBtnE by cb@social.treehouse.systems
       0 likes, 0 repeats
       
       @ariadne the u-config guy was too busy writing freestanding C on platforms with a C library to notice fgets
       
 (DIR) Post #B5MgmUm6MLsUItrU6C by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       @cb in the grand scheme of things, u-config is not particularly relevant, as people want a maintained ecosystem for pkg-config, which he has no interest in providing