23 questions
1
vote
1
answer
89
views
Custom plugin bulk action not showing on Orders page
I’ve built a custom WooCommerce plugin to allow bulk printing of shipping labels from the Orders page. However, the custom bulk action I've added (Print Shipping Labels) does not appear in the Bulk ...
0
votes
0
answers
71
views
One questions about Archetype and chunk of Unreal 5 Mass System
In the source code of the MassEntity module of Unreal 5, Is the raw memory of all chunks under the same Archetype contiguous?
// This is one chunk within an archetype
struct FMassArchetypeChunk
{
...
1
vote
3
answers
249
views
Optimizing FIX Message Parsing for High-Throughput Performance
I am processing FIX messages at high intensity and need to efficiently convert the input FIX message data into a Dictionary<int, string> for fast lookup. I have already attempted some ...
0
votes
3
answers
80
views
Convert Memory2D<T> to 1D array
I need simple way to convert Memory2D from CommunityToolkit.HighPerformance package into simple 1D collection-like form. List / Array / Anything like that 1D.
Best way i see by myself is MyMemory2D....
0
votes
1
answer
80
views
WhatsApp API Broadcast with Celery - Unable to Reach 1K Throughput Limit
I am trying to send a WhatsApp broadcast using Meta's WhatsApp API, but I am not able to fully utilize the 1K messages per second throughput limit.
Current Architecture:
I process phone numbers and ...
1
vote
1
answer
69
views
Different displayed message if it's customer first order in WooCommerce
I've got some code working which shows a message at the top of the packing slips if we have a new customer.
However, it's showing the message for all orders, so I've figured my code isn't getting the ...
2
votes
0
answers
240
views
Is Karatsuba algorithm necessary?
I am developing an algorithm that multiplies large numbers. I am doing LeftLength x RightLength multiplications. Karatsuba algorithm does less multiplications. Currently, the algorithm is more ...
0
votes
1
answer
215
views
How to add a custom Button in WooCommerce admin orders list with HPOS? [duplicate]
In WooCommerce admin orders page when using High Performance Order Storage (HPOS), I am trying to add a custom button on top of the page as shown in the screenshot below:
I have tried code from this ...
0
votes
1
answer
155
views
WooCommerce HPOS: Get the Order Item Object from the Item ID
I am trying to get the order Item Object from the Item ID when High Performance Order Storage is enabled. Neither the order object nor the item object is known. The order ID is not known either. Only ...
1
vote
1
answer
926
views
Check if specific Order metadata or order item metadata exist in WooCommerce
We're working on updating some custom plugins to HPOS. I've looked at https://developer.woocommerce.com/docs/hpos-order-querying-apis/ for the answer and it didn't seem to have it.
I'm looking for ...
5
votes
2
answers
271
views
How to iterate over ReadOnlySpan in F#?
You can get Spans via System.Memory to.NET Standard 2.0 compatible libraries.
But how do you do this the most efficiently in F#:
let myRsp = "test1".AsSpan()
let test = Seq.forall (fun x -&...
0
votes
1
answer
830
views
Why is the order page on my WooCommerce store so slow?
Since WooCommerce 8.9 came out, I've noticed a big slowdown when I click on an order page from WooCommerce -> Orders in my dashboard. I have a big store with many orders, and it takes many seconds ...
2
votes
2
answers
560
views
Admin orders custom sortable column in WooCommerce with HPOS
I recently upgraded a Woocommerce website to use HPOS and I found out the custom column sorting no longer works. In Woocommerce I setup a sortable column for a customers last name. I adjusted my code ...
1
vote
1
answer
449
views
Extend search on WooCommerce admin orders list from metadata when HPOS is enabled
We have created Custom fields the customers need to fill out to recieve their order since they are being sent to someone other then who ordered it. When someone other then who ordered it ask for a ...
2
votes
1
answer
1k
views
Create a custom filter in WooCommerce Admin Orders list (HPOS)
I've created a plugin that updates a single field with a value of 0 or 1. I want to now add the ability to filter to only orders with that field that equals 1. The field meta data is "...
1
vote
1
answer
183
views
Update admin custom order metadata for WooCommerce High Performance Orders Storage (HPOS)
I am working on a way our sales team can mark orders as manual and check back on them. We are using High Performance Orders Storage (HPOS) enabled. I need to be able to update the field value when the ...
0
votes
0
answers
43
views
Is comparing an INT with lower value faster?
For example these to comparisons:
If (1 < 10)..
If (1.000.000.000 < 2.000.000.000)..
Is the first comparison faster?
Is this true for all languages or interpreters?
2
votes
1
answer
450
views
Filter orders that have products from their author on WooCommerce admin order list (+ HPOS)
I used this solution to filter users product list, now I'm looking for a solution to filter the orders list of WooCommerce in admin dashboard. That means, a logged-in user can only see the orders for ...
1
vote
1
answer
466
views
Add customer order count to WooCommerce admin orders list (HPOS)
Based on Add columns to admin orders list in WooCommerce (+ HPOS) answer code, I am adding a custom column in the wc-orders dashboard. but I am unable to get it to work.
The columns display on my wc-...
3
votes
1
answer
1k
views
Custom column with order metadata in WooCommerce HPOS admin orders list
Due to upgradation in woocommmerce plugin the filter by which the medium/source was shown got disappeared. I some how retrieve the column og medium/source back but my data is not populating in it. The ...
6
votes
3
answers
4k
views
Filtering orders list in WooCommerce with HPOS
I'm in the process of converting an open source plugin to be HPOS-compatible. One of its features is additional filters on the orders list in admin (inline with the order statuses), eg:
I can't seem ...
0
votes
1
answer
122
views
What is the best approach for rapid sound playback on iOS?
I have a UI that allows someone to move a dial and the dial 'snaps' to each 'mark' on the dial.
I want to add sound to this and I've made a very short 'click' sound that is a fraction of a second.
I ...
0
votes
2
answers
1k
views
Create and fill an array with an enumeration from 1 to n in the fastest method possible
I've the following code:
int n = 150000;
int[] myArray = Enumerable.Range(1, n).ToArray();
So I want myArray contains an enumeration like 1,2,3,4,etc...
Of course the size of the array should be ...