dbh_regen_sweep(3)

πŸ“¦ version 5.0.22, in fedora 43, fedora 44

πŸ’– dbh_regen_sweep(3) πŸ’–

okay bestie, so this is a page from the DBHashTables Programmers' Manual, and it's literally all about making your DBHashTable's physical structure match its logical structure. glow-up for your data structure, no cap ✨


πŸŽ€ NAME πŸŽ€

dbh_regen_sweep, dbh_regen_fanout, dbh_settempdir β€” the trio that makes the physical structure of the DBHashTable congruent with the logical structure πŸ¦‹

🌸 SYNOPSIS 🌸

#include <dbh.h>

DBHashTable *dbh_regen_sweep (DBHashTable *dbh);
DBHashTable *dbh_regen_fanout (DBHashTable *dbh);
int dbh_settempdir (DBHashTable *dbh, char *temp_dir);

✨ DESCRIPTION ✨

so here's the tea πŸ“ β€” you're regenerating the DBHashTable, which means you're eliminating erased records and optimizing disk access and speed. iconic behavior honestly.

  • use dbh_regen_sweep when you want that optimized-for-sweep-access energy
  • use dbh_regen_fanout when you want that optimized-for-fanout-access energy

how does it do it?? by creating a new DBHashTable where the physical structure matches the logical structure. main character rebuild moment πŸ’…

the temporary directory where the new DBHashTable gets created can be set with dbh_settempdir(). very demure, very mindful, you get to pick where the new baby lives πŸŽ€

heads up bestie: the current DBHashTable is closed before it's removed, and the new DBHashTable is opened after it's renamed. the order matters, fr fr πŸ”₯

⭐ RETURN VALUE ⭐

a pointer to the new DBHashTable. periodt. πŸ‘‘

🌈 SEE ALSO 🌈

  • dbh (0)
  • dbh_sweep (3)
  • dbh_fanout (3)
  • dbh_foreach_sweep (3)
  • dbh_foreach_fanout (3)

πŸ’œ Author πŸ’œ

Edscott Wilson Garcia <edscott@xfce.org> β€” ty king 🫢


and that's the whole vibe check bestie β€” this page came to you straight out of the DBHashTables manual, served under the DBH name. now go regenerate something gorgeous πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from