View Single Post
Old 03-06-2022, 04:14 AM   #354
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,529
Karma: 8075938
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Quick question:

Code:
program: if $something then 'Yes' fi
Code:
program: if $something then 'Yes' else 'No' fi
Is there any difference in performance of returning 'No' for yes/no sorting?
Returning 'No' is perhaps a microsecond per book slower when the template is processed, which is once per book when sorting. 'No' vs the empty string should make no difference at all.
chaley is offline   Reply With Quote