- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I would like some advice about the following. I have a quite big SELECT CASE block where cases are unique integers. The block includes about 200 cases representing different functions. I was wondering if I could get any benefit in terms of speed by replacing the big SELECT CASE block with an array pointers pointing to functions to apply. Thanks in advance.
Regards,
Filippo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link to Fortran Discourse site: https://fortran-lang.discourse.group/
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pick the one that is easy to maintain - although 200 seems a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since your question is general Fortran, you may want to consider posting it at Fortran Discourse site (and possibly also USENET based comp.lang.fortran) for wider feedback:
By the way, here's a long thread toward a similar discussion at comp.lang.fortran a while ago that may help you with some pointers: https://groups.google.com/g/comp.lang.fortran/c/6uROcAIvPcQ/m/ULl1Muz0CAAJ
Ultimately I think you'll have to figure out what works best for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link to Fortran Discourse site: https://fortran-lang.discourse.group/
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page