Skip to content

Clarify a comment regarding ffflus#115

Open
wrp wants to merge 1 commit into
heasarc:developfrom
wrp:documentation
Open

Clarify a comment regarding ffflus#115
wrp wants to merge 1 commit into
heasarc:developfrom
wrp:documentation

Conversation

@wrp

@wrp wrp commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

ffflus (on *-nix) eventually calls fflush. It does not call fsync or sync, and the data may not be on they physical device after this function returns. This change clarifies the comment to emphasize that.

ffflus (on *-nix) eventually calls fflush.  It does *not* call fsync or
sync, and the data may not be on they physical device after this
function returns.  This change clarifies the comment to emphasize that.
@esabol

esabol commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Instead of changing a bunch of comments, maybe it should just call fsync since that seems to be the intention?

@wrp

wrp commented Jan 17, 2026

Copy link
Copy Markdown
Contributor Author

Perhaps calling fsync is the right thing to do, but I'm certainly not familiar enough with the code yet to make such a change! At the moment, I just want comments that aren't misleading. Calling fsync could have substantial performance penalties for users of the library, and I don't think there is enough of a benchmark in place to be able to understand what the impact would be.

@rmathar

rmathar commented May 28, 2026

Copy link
Copy Markdown

The major question is: is the fflus useful as an intermediate layer that performs better on the memory-mapped FITS files of the mem: driver as long as fsync is not called?

@rmathar rmathar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely a valid and useful update of the C-functions...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants