Custom Query (1630 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (67 - 69 of 1630)

Ticket Resolution Summary Owner Reporter
#702 fixed macro expansion time category specification filter for log5scm certainty Moritz Heidkamp
Description

The attached patch adds support for defining a category specification that's matched against at macro expansion time. If it matches, the log-for macro will expand to (void) and thus not generate any runtime overhead. The specification is passed through the environment variable LOG5SCM_CAT_SPEC. To implement this feature it was necessary to split the log5scm module into two modules (log5scm-lolevel and log5scm) so that the category spec matching code can be used both at macro expansion and run time.

For example, consider this program:

(use posix log5scm)

(define-category foo)
(define-category bar)

(start-sender main 
              (port-sender (current-output-port))
              (category bar))

(log-for (foo) (begin (sleep 2) "some expensive foo bar"))
(log-for (bar) "some bar")

Even though we only have a sender that's interested in log messages of the category bar the program will wait for 2 seconds because senders may change at runtime. The (sleep 2) is contrived of course, imagine building some elaborate data structure for debugging puproses there instead. Now invoking this program with LOG5SCM_CAT_SPEC=bar will completely eliminate the (log-for (foo) ...) call (well, replace it with (void) in fact). This can be useful for stripping debug messages completely from a compiled program by passing something like LOG5SCM_CAT_SPEC='(not debug)'.

#727 fixed sendfile broken for files > 1MB certainty Mario Domenech Goulart
Description

Here's the error when using spiffy to serve a file generated with

dd if=/dev/zero of=foo.data bs=1024 count=1025

If the data file is generated with

dd if=/dev/zero of=foo.data bs=1024 count=1024

no error occurs.

Moritz has provided a patch: http://moritz.twoticketsplease.de/files/excellent-sendfile-fix.patch which fixes that.

#728 fixed sendfile.setup will probably not work on windows certainty Mario Domenech Goulart
Description

The latest lines from sendfile.setup are

;; cleanup temp-files
;; remove this in production
(system "rm *.o")

I suspect that it'll break the sendfile installation on systems that have no rm (e.g., Windows).

Note: See TracQuery for help on using queries.