Skip to content

Commit

Permalink
added a comment to remind me to improve some code
Browse files Browse the repository at this point in the history
  • Loading branch information
eteran committed Jan 18, 2024
1 parent 450ad17 commit 778c033
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DocumentWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2180,6 +2180,9 @@ bool DocumentWidget::compareDocumentToFile(const QString &fileName) const {

char pendingCR = '\0';

// TODO(eteran): in the age of modern computers, we can just memory map
// the whole file and use that for comparison

QFile file(fileName);
if (!file.open(QIODevice::ReadOnly)) {
return true;
Expand Down

0 comments on commit 778c033

Please sign in to comment.