projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5610084
)
case-map: Use stateless translator in case_map_create_input_translator().
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 20 Feb 2023 23:50:28 +0000
(15:50 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 21 Feb 2023 04:01:26 +0000
(20:01 -0800)
Case mapping isn't stateful, so this could be more efficient in some cases.
src/data/case-map.c
patch
|
blob
|
history
diff --git
a/src/data/case-map.c
b/src/data/case-map.c
index 2e1507edca750d0cc650d922168c8f1902e301b4..968b945af2a9318a74324b458b9382a212dbab96 100644
(file)
--- a/
src/data/case-map.c
+++ b/
src/data/case-map.c
@@
-134,9
+134,9
@@
case_map_create_input_translator (struct case_map *map,
static const struct casereader_translator_class class = {
translate_case, destroy_case_map,
};
- return casereader_
create_translator
(subreader,
- case_map_get_proto (map),
- &class, map);
+ return casereader_
translate_stateless
(subreader,
+
case_map_get_proto (map),
+
&class, map);
}
/* Creates and returns a new casewriter. Cases written to the