D Darknight20 Member Oct 18, 2020 #1 Hi how i can understand a string have emoji and return it in the form of boolean?? i found this: https://www.b4x.com/android/forum/t...e-only-emojis-in-the-string.91247/post-576734 but, this check each byte and it takes a long time. i just want true or false and fast. please help me, Thanks.
Hi how i can understand a string have emoji and return it in the form of boolean?? i found this: https://www.b4x.com/android/forum/t...e-only-emojis-in-the-string.91247/post-576734 but, this check each byte and it takes a long time. i just want true or false and fast. please help me, Thanks.
Erel B4X founder Staff member Licensed User Longtime User Oct 19, 2020 #2 Darknight20 said: i found this: https://www.b4x.com/android/forum/t...e-only-emojis-in-the-string.91247/post-576734 but, this check each byte and it takes a long time. i just want true or false and fast. Click to expand... Please post an example where it is too slow. Make sure to test in release mode. Upvote 0
Darknight20 said: i found this: https://www.b4x.com/android/forum/t...e-only-emojis-in-the-string.91247/post-576734 but, this check each byte and it takes a long time. i just want true or false and fast. Click to expand... Please post an example where it is too slow. Make sure to test in release mode.
D Darknight20 Member Oct 20, 2020 #3 Erel said: Please post an example where it is too slow. Make sure to test in release mode. Click to expand... ex: when i want add 100 label to scrollview and i should check each label for emoji Upvote 0
Erel said: Please post an example where it is too slow. Make sure to test in release mode. Click to expand... ex: when i want add 100 label to scrollview and i should check each label for emoji
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2020 #4 Please post an example where it is too slow. Make sure to test in release mode. Post numbers. Post a real example. One of the biggest programming mistakes is to assume that something is slow without testing it. Watch the video tutorials for more information about this. Upvote 0
Please post an example where it is too slow. Make sure to test in release mode. Post numbers. Post a real example. One of the biggest programming mistakes is to assume that something is slow without testing it. Watch the video tutorials for more information about this.
D Darknight20 Member Oct 20, 2020 #5 Erel said: Please post an example where it is too slow. Make sure to test in release mode. Post numbers. Post a real example. One of the biggest programming mistakes is to assume that something is slow without testing it. Watch the video tutorials for more information about this. Click to expand... I test this! result: Also , project is attached Attachments project.zip project.zip 9.3 KB · Views: 536 Upvote 0
Erel said: Please post an example where it is too slow. Make sure to test in release mode. Post numbers. Post a real example. One of the biggest programming mistakes is to assume that something is slow without testing it. Watch the video tutorials for more information about this. Click to expand... I test this! result: Also , project is attached
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2020 #6 Based on the numbers I'm sure that you tested it in debug mode. Carefully read my previous answers. The output when I run it in release mode: time with check : 44 time without check : 19 Should we really talk so much about 25ms?????????????? Upvote 0
Based on the numbers I'm sure that you tested it in debug mode. Carefully read my previous answers. The output when I run it in release mode: time with check : 44 time without check : 19 Should we really talk so much about 25ms??????????????