Skip to content

oracleobjectstorage, sftp: eliminate unnecessary heap allocation - #9079

Merged
roucc merged 3 commits into
rclone:masterfrom
Lslightly:reduce-heap-alloc
Jan 9, 2026
Merged

roucc merged 3 commits into
rclone:masterfrom
Lslightly:reduce-heap-alloc

Conversation

@Lslightly

Copy link
Copy Markdown
Contributor

Move the declaration location of variables to eliminate heap
allocation which may make rclone faster and reduce memory usage slightly.

Fixes #9078

What is the purpose of this change?

Eliminate unnecessary heap allocation.

Was the change discussed in an issue or in the forum before?

See #9078.

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

Move the declaration location of variables to eliminate heap
allocation which may make rclone faster and reduce memory usage slightly.

Fixes rclone#9078

@ncw ncw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you fix the lint problem and I'll merge - thank you

@Lslightly
Lslightly requested a review from ncw January 6, 2026 15:47
Comment thread backend/ftp/ftp.go Resolved

@roucc roucc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, I'll merge now!

@roucc
roucc merged commit 530a901 into rclone:master Jan 9, 2026
9 checks passed
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.

small refactoring to reduce memory usage

3 participants