mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Merge branch 'stable-2.0'
Conflicts: benchmark-suite/benchmarks/ports.bm libguile/async.h libguile/bytevectors.c libguile/foreign.c libguile/gsubr.c libguile/srfi-1.c libguile/vm-engine.h libguile/vm-i-scheme.c module/Makefile.am module/language/tree-il/analyze.scm module/language/tree-il/peval.scm module/scripts/compile.scm module/scripts/disassemble.scm test-suite/tests/asm-to-bytecode.test test-suite/tests/peval.test test-suite/tests/rdelim.test
This commit is contained in:
commit
856d318a9f
57 changed files with 1018 additions and 491 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; ports.bm --- Port I/O. -*- mode: scheme; coding: utf-8; -*-
|
||||
;;;
|
||||
;;; Copyright (C) 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
|
||||
;;; Copyright (C) 2010-2014 Free Software Foundation, Inc.
|
||||
;;;
|
||||
;;; This program is free software; you can redistribute it and/or
|
||||
;;; modify it under the terms of the GNU Lesser General Public License
|
||||
|
@ -87,4 +87,9 @@
|
|||
(let ((str (string-concatenate (make-list 1000 "one line\n"))))
|
||||
(benchmark "read-line" 1000
|
||||
(let ((port (open-input-string str)))
|
||||
(sequence (read-line port) 1000)))))
|
||||
(sequence (read-line port) 1000))))
|
||||
|
||||
(let ((str (large-string "Hello, world.\n")))
|
||||
(benchmark "read-string" 200
|
||||
(let ((port (open-input-string str)))
|
||||
(read-string port)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue