[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Better support for non-zero lower bound arrays
From: |
daniel . llorens |
Subject: |
Better support for non-zero lower bound arrays |
Date: |
Mon, 13 Feb 2017 15:04:22 +0100 |
This patchset adds better support for non-zero lower bound
arrays. Specifically, the functions sort, sort!,
restricted-vector-sort!, array-slice-for-each, and truncated-print from
(ice-9 pretty print) now support non-zero lower bound arrays.
The patchset also adds support for bitvectors in truncated-print and
completes the removal of uniform-vector-read!/write, which were still
present in the manual.
Finally, the patch installs the module (ice-9 arrays) with two (I think
rather obvious) functions, array-copy and typed-array-copy. This module
already existed in the tree, it just wasn't installed.
(ice-9 arrays) also includes two private functions, array-print-prefix
and array-print. These functions are meant to replace the C
implementation in arrays.c (scm_i_print_array), but I haven't completed
the replacement as the Guile version is about 3x slower in my
benchmarks. However, array-print-prefix is used internally by both
truncated-print and scm_i_print_array, and I believe that it will be
possible to make array-print faster in the future.
Regards
Daniel
- Better support for non-zero lower bound arrays,
daniel . llorens <=
- [PATCH 3/6] Remove documentation on uniform-vector-read!, uniform-vector-write, daniel . llorens, 2017/02/13
- [PATCH 1/6] Remove unnecessary #include, daniel . llorens, 2017/02/13
- [PATCH 2/6] Replace uniform-vector-read benchmark with bytevector-io benchmark, daniel . llorens, 2017/02/13
- [PATCH 5/6] Support non-zero lower bounds in array-slice-for-each, daniel . llorens, 2017/02/13
- [PATCH 6/6] Fix bitvectors and non-zero lower bound arrays in truncated-print, daniel . llorens, 2017/02/13
- [PATCH 4/6] Fix sort, sort! for arrays with nonzero lower bound, daniel . llorens, 2017/02/13