Skip to content

Request: add support for grovel-locally #9

@Sod-Almighty

Description

@Sod-Almighty

Every time I run my project,¹ it takes a few minutes for this library to grovel the same .c and .h files.

Given that these files are unlikely to change between executions, strikes me that we could just cache the grovel results, saving considerable time during development.

To this end, I modified my local copy of libusb-ffi.asd as follows:

  :depends-on (#:cffi #:grovel-locally #:static-vectors)
  :components ((:file "package")
         (:caching-grovel-file "libusb-grovel" :cache-dir "cache")
         (:file "libusb-ffi")))

It would be helpful if you could modify your library to support this. The problem, of course, would be to implement some mechanism for selectively choosing (when loading via quicklisp) between "normal" grovelling and cached grovelling.

Some ideas that might work:

  • Have the .asd file query the contents of the *features* special variable² (which the programmer presumably alters beforehand).
  • Somehow (defconstant ...) something before (ql:quickload)ing the library.
  • Have two different .asd files.

Alternatively, if I download this repo and place it in its own directory in my project, can I ignore the .asd file and (load) it myself in some way, but using caching-grovel instead of grovel?


¹ Specifically pkcmd-lx. I'm the dev ;)

² e.g. using the sharp-plus notation: #+cached-grovelling

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions