Skip to content

Conversation

jepler
Copy link

@jepler jepler commented Mar 22, 2018

.. the price of this appears to be about 112 bytes of flash and 12
bytes of RAM, according to the stats printed during the build.

It also uses up 4 directory entries (out of 128), but does not reduce
the number of blocks usable for storing file contents.

These are the same items noted in the Adafruit README for Trinket M0
as preventing MacOS indexing.

Closes: #689

.. the price of this appears to be about 112 bytes of flash and 12
bytes of RAM, according to the stats printed during the build.

It also uses up 4 directory entries (out of 128), but does not reduce
the number of blocks usable for storing file contents.

These are the same items noted in the Adafruit README for Trinket M0
as preventing MacOS indexing.

Closes: adafruit#689
@jerryneedell
Copy link
Collaborator

Do we want to implement this for all atmel-samd boards, or just the "non-express" boards. Is there any reason MacOS users would want file indexing enabled on express boards?

@tannewt
Copy link
Member

tannewt commented Mar 22, 2018

If a user wants the indexing they can always delete the file.

I would do it on Express versions as well because this also reduces file system churn. We currently don't do any wear leveling on the flash so stopping metadata writes will prolong its life.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Looks awesome! Thanks for picking this up!

@tannewt tannewt merged commit 0c4bbef into adafruit:master Mar 22, 2018
@jepler jepler deleted the issue689 branch March 22, 2018 18:40
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