FAQ: Lisp Frequently Asked Questions 2/7 [Monthly posting] (2024)

Both association lists (alists) and hash tables may be used torepresent tabular data. Hash tables have an O(1) running time andalists an O(n) running time, so hash tables are ultimately moreefficient than alists. However, if the alists are small, they can bemore efficient than hash tables, which have a large initial overhead.Alists can sometimes be more efficient if the keys are sortedaccording to frequency, with the most heavily accessed keys appearingat the front of the list. But one doesn't always know this kind ofinformation, and even then the frequency distribution may be flat.In Allegro CL 4.1 [SPARC; R1], the rule of thumb is that for less than24 elements, linear search using alists beats hashing. In Lucid CL4.0.1 HP 9000/700, the break-even point is at 10 elements. Thebreak-even points vary in other lisps from as low as 4 elements to ashigh as 100 elements. So if you're using alists in your code, using hash tables instead may speed up your program. A potential problem may occur, however, when the keys of an EQ or EQLhash table are Lisp objects such as conses or arrays (or other objectsthat are identified by their addresses). In most implementations, suchtables must be re-hashed after garbage collection. If your applicationcauses frequent GCs, this can adversely affect the performance of hashtable lookup. Since EQL-hashing and =-hashing of fixnums generallydon't require rehashing after GC, one way of avoiding this problem isto include a unique identifier in each key object and hash on thatinstead. Another solution is to use an EQUAL hash table if the keysare conses or an EQUALP hash table if the keys are arrays or other(non-circular!) structures.
Go Back Up

Go To Previous

Go To Next

FAQ: Lisp Frequently Asked Questions 2/7 [Monthly posting] (2024)
Top Articles
How To Clean Out An IBC Tank - Industrial Trading Solutions
WTI Cabs IPO Details - IPO Date, Price, GMP, Analysis & Review
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 6215

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.