Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #45019
| From | Ron Aaron <rambamist@gmail.com> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Small strings as ints |
| Date | 2016-01-22 09:50 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <n7smrm$ocv$1@dont-email.me> (permalink) |
| References | <ff9ea42c-37b1-496c-9bad-449ca7805010@googlegroups.com> <abf1fc70-ed98-43ae-a581-1497ccf726d5@googlegroups.com> <n7sip2$dpr$1@dont-email.me> <6d8dacb7-c7d3-415a-908d-9f2a989edc4b@googlegroups.com> |
On 22/01/2016 09:41, Raimond Dragomir wrote: > As long as I can get the local variable address, there is no overhead and > no optimization needed. And the stack strings are very nice, completely > reentrant and no heap/dynamic allocation hassle. Right, that's why I'm thinking it could be very good (in 8th) for small items. Just "allocate" in an int instead of in the heap. It would probably make things faster as well because the item being accessed would more likely be in the CPU cache... Still, needs to be tested and measured before getting excited.
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Stack space size Brad Eckert <hwfwguy@gmail.com> - 2016-01-21 21:50 -0800
Re: Stack space size hughaguilar96@gmail.com - 2016-01-21 22:00 -0800
Re: Stack space size Raimond Dragomir <raimond.dragomir@gmail.com> - 2016-01-21 22:30 -0800
Small strings as ints Ron Aaron <rambamist@gmail.com> - 2016-01-22 08:41 +0200
Re: Small strings as ints Raimond Dragomir <raimond.dragomir@gmail.com> - 2016-01-21 23:41 -0800
Re: Small strings as ints Ron Aaron <rambamist@gmail.com> - 2016-01-22 09:50 +0200
Re: Small strings as ints Ron Aaron <rambamist@gmail.com> - 2016-01-24 07:15 +0200
Re: Stack space size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-22 15:31 +0000
Re: Stack space size Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-01-22 17:10 -0500
Re: Stack space size Coos Haak <chforth@hccnet.nl> - 2016-01-22 23:21 +0100
Re: Stack space size "Elizabeth D. Rather" <erather@forth.com> - 2016-01-22 13:28 -1000
Re: Stack space size hughaguilar96@gmail.com - 2016-01-25 21:23 -0800
Re: Stack space size "HAA" <someone@microsoft.com> - 2016-01-24 00:08 +1100
Re: Stack space size anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-26 16:23 +0000
csiph-web