Skip to content

Commit

Permalink
tables.rb: Generate UTF-8 strings when possible.
Browse files Browse the repository at this point in the history
Strings in `tables.rb` for the most part are common occurences.
MIME types and extension names are extremely likely to be referenced
in other gems and in the host application.

As such it's preferable to define them in the default encoding
so that the same interned string can be re-used.

The exception being the magic strings, they need to be binary.
For them we generate them with the `.b.freeze` suffix.
  • Loading branch information
byroot committed May 10, 2022
1 parent 9422594 commit 966999a
Show file tree
Hide file tree
Showing 2 changed files with 394 additions and 372 deletions.

0 comments on commit 966999a

Please sign in to comment.