Commit 7b75771
committed
fwrite: pre-encode strings and factor levels
Previously, fwrite() deferred encoding of the strings to
fwriteR.c:getString,getCategString called from OpenMP threads. Calling
translateChar[UTF8] to encode a string results in memory allocation
unless it is already in the desired encoding, which is unsafe to perform
on a non-main thread.
Fixes: #68831 parent 2cb0316 commit 7b75771
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
114 | 123 | | |
115 | 124 | | |
116 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21113 | 21113 | | |
21114 | 21114 | | |
21115 | 21115 | | |
| 21116 | + | |
| 21117 | + | |
| 21118 | + | |
| 21119 | + | |
0 commit comments