Today I Learned

tags


2022/02/14


2023/06/19

That Option<T> costs ~1x the alignment value of T. I also learned Vec<T>’s size and alignment don’t reflect the size and alignment of T since the Vec is tracking an owned buffer on the heap which isn’t counted in the Vec’s own size.

struct Alone8(u8);         // size= 1, align=1
struct Opt8(Option<u8>);   // size= 2, align=1
struct Vec8(Vec<u8>);      // size=24; align=8

struct Alone64(u64);       // size= 8, align=8
struct Opt64(Option<u64>); // size=16, align=8
struct Vec64(Vec<u64>);    // size=24; align=8

That Firefox bundles process and task managers for performance monitoring, available at about:processes and about:tasks, respectively https://support.mozilla.org/en-US/kb/task-manager-tabs-or-extensions-are-slowing-firefox


2023/09/12

Start typing your search with…

  • ^ to show only matches in your browsing history.

  • * to show only matches in your bookmarks.

  • + to show only matches in bookmarks you’ve tagged.

  • % to show only matches in your currently open tabs.

  • # to show only matches where every search term is part of the title or part of a tag.

  • $ to show only matches where every search term is part of the web address (URL). The text https:// or http:// in the URL is ignored but not file:///.

  • Add ? to show only search suggestions.

  • Hitting Ctrl-enter in the URL bar works like autocomplete;“mozilla” go straight to www.mozilla.com, for example. Shift-enter will open a URL in a new tab.

https://exple.tive.org/blarg/2020/10/25/navigational-instruments/

also, about:crashparent is an intentional crash in case you want to restart the browser.

See also: https://support.mozilla.org/en-US/kb/address-bar-autocomplete-firefox