Skip to content

Commit

Permalink
avoid intermediate flonum allocation (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo authored Mar 6, 2024
1 parent 5e248cc commit 3a1c402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/net/httpd/logger.ss
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
(using (req :- http-request)
(let* ((wr 0)
;; timestamp
(wr (fx+ wr (writer.write-digits (exact (floor ts)))))
(wr (fx+ wr (writer.write-digits (##flonum->fixnum ts))))
(wr (fx+ wr (writer.write-char #\space)))
;; client IP
(wr (fx+ wr (let (ip (car req.client))
Expand Down

0 comments on commit 3a1c402

Please sign in to comment.