NOTES_OF_PROGRAMMER Telegram 559
Ещё один всратотест (gist) - проверка сортированный ли массив. Кандидаты:

* обычный цикл + с сохранением предыдущего
* Vector128<int> + с сохранением предыдущего
* Vector256<int> + с сохранением предыдущего

Даже циклы можно крутить быстрее :))

Что интересно - Unsafe.ReadUnaligned и MemoryMarshal.Cast<int, Vector128<int>> (в гисте его нет, но я пробовал) - совершено идентичны по скорости.

Вопрос - можно ли это назвать не O(n), а O(n/4) и O(n/8)? 😁

Надо попробовать алгоритм K-means завернуть в SSE, там должен интересный буст на большом количестве кластеризуемых точек. #sse #simd
🤓3👍2💩2🔥1



tgoop.com/notes_of_programmer/559
Create:
Last Update:

Ещё один всратотест (gist) - проверка сортированный ли массив. Кандидаты:

* обычный цикл + с сохранением предыдущего
* Vector128<int> + с сохранением предыдущего
* Vector256<int> + с сохранением предыдущего

Даже циклы можно крутить быстрее :))

Что интересно - Unsafe.ReadUnaligned и MemoryMarshal.Cast<int, Vector128<int>> (в гисте его нет, но я пробовал) - совершено идентичны по скорости.

Вопрос - можно ли это назвать не O(n), а O(n/4) и O(n/8)? 😁

Надо попробовать алгоритм K-means завернуть в SSE, там должен интересный буст на большом количестве кластеризуемых точек. #sse #simd

BY 📓 Записки программера




Share with your friend now:
tgoop.com/notes_of_programmer/559

View MORE
Open in Telegram


Telegram News

Date: |

In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist. Activate up to 20 bots Invite up to 200 users from your contacts to join your channel Just at this time, Bitcoin and the broader crypto market have dropped to new 2022 lows. The Bitcoin price has tanked 10 percent dropping to $20,000. On the other hand, the altcoin space is witnessing even more brutal correction. Bitcoin has dropped nearly 60 percent year-to-date and more than 70 percent since its all-time high in November 2021. "Doxxing content is forbidden on Telegram and our moderators routinely remove such content from around the world," said a spokesman for the messaging app, Remi Vaughn.
from us


Telegram 📓 Записки программера
FROM American