mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #45] worksheet_write_column api #39
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @burlen on GitHub (Feb 3, 2016).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/45
Hi, I am about to start using your library, it is a god send that I don't have to do this from scratch, thank you!
After reading your API I have some concern about performance. I believe it would be easy to demonstrate as it is a well known issue with C API, a function call on an inner loop creates a bottleneck. Function calls themselves are rather heavy operation. Especially where memcpy would suffice.
I would like to know if you had planned on adding an API to set an entire column of data via a single call? If not I would like to propose it. Something along the lines of:
Given the loop structure illustrated in the doc section about memory and performance I believe such an API is compatible and would be almost trivial to add. Please let me know your thoughts on this issue.
Burlen
@jmcnamara commented on GitHub (Feb 4, 2016):
Hi Burlen,
Thanks for the suggestion. The dynamic language versions of this library in Python, Perl and Lua have a function just like that.
However, for the way that libxlsxwriter handles its data internally this wouldn't help performance. Also, the library handles different data types (strings, numbers, formulas, urls, blanks) and each one of them would need a
write_column()handler.Thanks for the input.
John
@burlen commented on GitHub (Feb 4, 2016):
Yeah, browsing the source code, I'm noticing that under the covers things are not gearedtoward performance. Unfortunately, without a major rewrite this library isn't going to provide the level of performance we need. I'm glad we found this out now! Thanks for the feedback.
@jmcnamara commented on GitHub (Feb 4, 2016):
No problem.
@burlen commented on GitHub (Feb 4, 2016):
btw, I still think you have the best solution out there! Thanks so much for publishing it freely and interacting with the community!