Arshid

Results 45 comments of Arshid

Order module On Fri, 25 Aug, 2023, 3:26 am T. Almroth, ***@***.***> wrote: > What type of module are you planning? Shipping, Payment or Order module? > > — >...

I want code as follows. **PHP** ``` class my class{ static $a = 1; public static function hello(){ } }

[https://github.com/php/php-src/blob/master/ext/mbstring/tests/mb_strrpos_basic.phpt](https://github.com/php/php-src/blob/master/ext/mbstring/tests/mb_strrpos_basic.phpt) Please check it ```echo "\n-- Multibyte string 1 --\n"; $needle1 = base64_decode('44CC'); var_dump(mb_strrpos($string_mb, $needle1));``` Output: -- Multibyte string 1 -- int(20)

> bstr the library universally operates in terms of byte offsets. if you'd like to count in terms of characters, use one of the iterators like `ByteSlice::chars`. Something like this:...

> Read the thread I linked. Different environments can return different offsets depending on how the string type is represented. Seriously, read the thread I linked. It should answer everything....

![cachegrind](https://i.imgur.com/XltH9Q4.png) **PHP code:** ```php for ($i=0; $i < 1000; $i++) { say_hello("sdf"); //rust strpos("sdfsf", "d", 1); //c function } ``` **Rust:** ```rust pub fn say_hello(arguments: &mut [ZVal]) -> phper::Result {...

Yes On Thu, 25 Jan, 2024, 8:40 am jmjoy, ***@***.***> wrote: > Do you build under release? > > — > Reply to this email directly, view it on GitHub...

> ![image](https://private-user-images.githubusercontent.com/8677974/299555197-ba5cb81e-151e-406d-ba9f-c4a590f54c5c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDYxNjUzMzgsIm5iZiI6MTcwNjE2NTAzOCwicGF0aCI6Ii84Njc3OTc0LzI5OTU1NTE5Ny1iYTVjYjgxZS0xNTFlLTQwNmQtYmE5Zi1jNGE1OTBmNTRjNWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDEyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAxMjVUMDY0MzU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjI1NmRlZDEyNjU3YjZlNGExMGE3MzA1MWE4NTI1YzcyMjE5YWI4NzQ5OTg5NWYzZjNjNmQ4ZTY3MGE5NmRmZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.5mbF9Z292mehZNn5QJYTSAagnavJXTxrrpeT72rBKaw) 0.18 > 0.11 Why does the Rust function take longer than the C complex O(n) function? How to optimise it?

A new version released. Please download now (phpbolt.com),

Please connect me [email protected] I can share arm version.