Skip to content

Commit 01d49ed

Browse files
committed
update
Signed-off-by: George Lemon <georgelemon@protonmail.com>
1 parent dd2d980 commit 01d49ed

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,24 @@ let t = cpuTime()
161161
parseFile("tripadvisor_european_restaurants.csv",
162162
proc(fields: openArray[CsvFieldSlice], row: int): bool =
163163
inc i
164+
for field in fields:
165+
discard # do something with the fields, e.g. print them
164166
true
165167
)
168+
166169
let elapsed = cpuTime() - t
167-
echo "Parsed ", i, " rows in ", elapsed, " seconds" # ~0.783363 seconds on my machine
170+
171+
echo "Parsed ", i, " rows in ", elapsed, " seconds"
172+
# ~0.783363 seconds on my machine
173+
# memory usage should be minimal due to zero-copy parsing with memfiles
168174
```
169175

176+
## Roadmap
177+
- [ ] JSON depth/size limit to prevent DoS attacks
178+
- [ ] JSON schema validation support
179+
- [ ] JSON skippable fields
180+
- [ ] JSON custom field mapping
181+
170182
### ❤ Contributions & Support
171183
- 🐛 Found a bug? [Create a new Issue](https://github.com/openpeeps/openparser/issues)
172184
- 👋 Wanna help? [Fork it!](https://github.com/openpeeps/openparser/fork)

0 commit comments

Comments
 (0)