735 questions
1
vote
1
answer
106
views
Filament PHP: Memory exhausted when selecting all table records (500k+ rows) - How to limit or optimize?
I'm using Filament PHP v3 with Laravel and have a table that can contain 500,000+ user records. When users click the "Select All" button the application crashes with a memory exhausted error:...
0
votes
1
answer
37
views
How Can I Ensure Suggestions Appear in the CLI Despite Long Execution Times?
I am developing a command predictor in C# following this guide. I managed to get the predictions working, but I hit a blocking point. If the execution time of the GetSuggestion() function is too long, ...
1
vote
0
answers
48
views
Converting time from milliseconds to seconds in Karate HTML report
I want to convert time in default Karate HTML report from millisecond to second.Is it possible to achieve this using karate.config.js file (either by using anu javascript function/using karate.config)
...
0
votes
1
answer
87
views
oracle sql query brings the result for a long time
I have written a query in oracle sql as follows. But the sql query brings the result for a long time. For example, when searching for a customer, the result comes in 4 minutes. Please help me to ...
0
votes
1
answer
84
views
Unable to fetch data from the expo-sqlite database efficiently
This is a function to get the data for a bar chart in my expo application using expo-sqlite but the sql query doesn't seem to work properly.
What i wanted was to create a function that can fetch the ...
0
votes
0
answers
118
views
Maximum Execution Time Question "Maximum execution time of 60 seconds exceeded"
I'm interested in getting more insight into how the maximum execution time in PHP/Laravel works. I tried to Google it myself, but wasn't successful. Here is the problem:
I wrote a piece of code in ...
0
votes
2
answers
86
views
How can i optimize checking permutations of char (10 letters) against a list of words?
I am trying to make a game from a TV show Cifras y letras in Spain (Countdown in the UK or Des Chiffres et des lettres in France). I have a list of all the Spanish words thanks to a code I found that ...
0
votes
0
answers
56
views
Filtering a CTE with 172 rows with another with 72 rows is taking a very long time
Here is my code:
with
pairs as
(
select distinct team_info."number" as "team_number", aic_info."name" as aic_name,
aic_assets."IMEI" as ...
-1
votes
1
answer
1k
views
I'm using %%timeit in jupyter notebooks to get the execution time of my cell
whenever I run the cell the time is coming in microseconds, I want the time in seconds how can I achieve this?
enter image description here
I want time in seconds or how can I get the result in ...
1
vote
1
answer
670
views
Overhead due to AOP logging
I am planning to log the execution time of all methods for a REST API. To accomplish this, I use AOP as follows:
@Aspect
@Component
@Slf4j
@ConditionalOnExpression("${aspect.enabled:true}")
...
0
votes
0
answers
54
views
Reduce function execution time in spike neural network
I'm trying to generate spikes from image for spike neural networks. I do this with rate coding, where the probability of generating a spike corresponds to the pixel value. I test my function with ...
-2
votes
2
answers
126
views
Multiplications a*b vs a*0: execution time
Action 1: Multiplication of a random number a with another random number b
Action 2: Multiplication of the same number a with 0
I did a small experiment to see which of these actions has the smallest ...
-1
votes
2
answers
95
views
pre-compiled headers compared to same headers built to .so file objects building time and exectuion time speed
what is faster?
pre-compiled headers or same headers built to objects?
Question: Do I still need precompiled headers If I move to model above?
Anything else you'd advise to speed up time to update?
I ...
1
vote
0
answers
104
views
Why is `sklearn.svm.LinearSVC` taking longer to execute than `sklearn.svm.SVC`? [duplicate]
I'm performing an hyperparameter tuning using both LinearSVC and SVC classes from scikit-learn and even though I'm performing 10 times more searches with the SVC class than with LinearSVC, the ...
1
vote
0
answers
873
views
Execution timing with context manager
I was looking for a solution for timing code execution.
Of course, I found all sorts of solutions mostly suggesting the use of timeit module - which is pretty cool - or just using the time module. ...
-1
votes
1
answer
49
views
jQuery Execution Time and SweetAlert Loading (Project Specific Problem)
I've been working on a data transformation project. I've had success with the code execution when dealing with small data sets. However, when working with larger data sets, the JavaScript execution ...
0
votes
0
answers
80
views
Is there a faster way for the VBA macro to execute my formula?
I created a macro and I'm using the following way to calculate the maximum value:
UltimaLinha = Workbooks(modelo).Sheets(NomeAba).Cells(Workbooks(modelo).Sheets(NomeAba).Rows.Count, "A").End(...
3
votes
1
answer
442
views
How to measure the execution time of inlined functions in C++?
I have a bunch of functions that complete in a few nanoseconds and I want to measure their execution time to assess their performance.
The basic idea is very simple, take a timestamp, execute the same ...
1
vote
2
answers
4k
views
Clarification on Google Workspace and Apps Script Quotas and Limits
I have been working on a project where I use Google Workspace and Google Apps Script to edit spreadsheets. While I have gone through the official documentation here, I still have some questions ...
-1
votes
3
answers
176
views
C++ measured execution time is nonsensical
I am trying to beat pow function of C++ by using Taylor Series, Newton's Method, continued fraction and such, the goal is to get a good approximation faster than pow.
I wrote some functions to ...
-1
votes
1
answer
85
views
An error when I try to run my android studio program
When I try to run the program it appears:
"Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @...
0
votes
0
answers
23
views
Record output of an executing code periodically
I cannot find an answer which fits to my problem.
I have a function in python which calculate the energy of a physics system. To optimize the energy I apply SGD to this function. I can record the ...
0
votes
0
answers
38
views
execution speed of string in if statement
I'm trying to do an automatic code, I have build a loop to match people in my 2 databases.
here an example of thoses two database:
some library might be needed so here all I used:
library(readr)
...
0
votes
0
answers
520
views
Google Apps Script takes much longer to execute a script on a timed trigger than manually (on demand)
I wrote a small script in Google Apps to process some 200+ files stored in my Google Drive. The processing consists basically in copying them all, one by one, to a master file, stored also in my ...
1
vote
0
answers
630
views
Error when using multiprocessing with Pandas: 'Can't pickle <class 'pandas.core.frame.Pandas'>: attribute lookup Pandas on pandas.core.frame failed
I am generating a script to validate XMLs (the specific code for each validation rule is written in the validation_rules module) and the code execution time was getting too long. So, I decided to use ...
1
vote
3
answers
160
views
Python : my code is slow, using for loop with Pandas dataframe
I got this code below which works fine but takes too much time to execute (>30s):
df['Date_engagement'] = np.nan
for i in range(df.shape[0]):
if not(pd.isna(df.loc[i,'Engagement'])):
df.loc[i, '...
0
votes
0
answers
77
views
Python, multiprocessing so much slower than single process processing
I am learning how to work with Python's multiprocessing, and the following are virtually identical block of codes, one is written in single threaded, single process, and the other is multiprocessing, ...
0
votes
0
answers
44
views
Want to use indexes on secondary collection of the mongodb
I have two collections mainCol and joinedCol from which using joins i am fetching around millions of records and the db query is taking excessive time, i want to use indexes on the fields of joined ...
2
votes
2
answers
500
views
Measuring the execution time of a function call in C using a function-like macro
Using the standard library function clock() is one of several methods to measure the execution time of a function call in C. So, for example, the comparison of the execution times of two functions (...
0
votes
2
answers
1k
views
How to check mongoDB updateOne execution time
I have been using .explain("executionStats") to find the execution time for a get-call like below in mongoDB compass console sh:
db.getCollection('Employee').find({"value.attendence&...
0
votes
2
answers
586
views
Is there a Python library that shows execution time per line? [closed]
I have found this library called heartrate which shows how many times each line has been hit. I'm wondering if there is a similar library that can show the execution time of each line? Sometimes a ...
-2
votes
1
answer
134
views
Is there a performance difference between omitting and including a return statement within a python function?
Assuming we have a function that updates a bunch of internal values within a class like so:
class MyClass:
def __init__():
self.counter = 0
self.condition_1 = True
self....
0
votes
0
answers
89
views
Execution times in C++ don't add up
I have been trying to improve the execution time of my program. The function below is a method of Class KAT, which also has references, samples and pointerMatrix as variables. There are 3 references ...
1
vote
0
answers
24
views
How to stop execution after a certain time
I have a function that is continuously looking for active services on the network with its name and port, but it is endless.
I would like to know how to stop the execution after 30 seconds or ...
-1
votes
2
answers
113
views
Reduce execution time of a code that uses binary search
The problem is to create an array of player ranks based on 2 other arrays: leaderboard and player scores. More explanations of the problem here: https://www.hackerrank.com/challenges/climbing-the-...
1
vote
2
answers
1k
views
process_time() function in python not working as expected
Can someone help me understand how process_time() works?
My code is
from time import process_time
t = process_time()
def fibonacci_of(n):
if n in cache: # Base case
return cache[n]
# ...
0
votes
0
answers
998
views
Airflow failed to get task instance
i have tried to run a simple task using airflow bash operator but keep getting stuck on my DAG never stop running, it stays like green forever without success or fail, when i check the logs i see ...
3
votes
1
answer
580
views
I want to obtain the ASM (Intel assembly) code generated by Julia
I wrote a simple for loop in Delphi and translated it to Julia. The execution time of the Delphi program, compared with the Julia one, is just pathetic: Julia is 7 times faster - see the program and ...
-2
votes
1
answer
138
views
Incorrect measurement of the code execution time inside OpenMP thread
So I need to measure execution time of some code inside for loop. Originally, I needed to measure several different activities, so I wrote a timer class to help me with that. After that I tried to ...
0
votes
1
answer
153
views
Different execution time for the same query with different time ranges
I have this query running on a Postgres 12 server with WHERE datetime BETWEEN datetimeA and datetimeB. Time difference between datetimeA and datetimeB is always 30 minutes, number of data involved is ...
3
votes
1
answer
140
views
Same function takes more time to execute in child
SHORT: My problem is that the following function which sum the content of a given array in a given range, doesn't take the same execution time for the same task as the parent if called from a child. ...
3
votes
1
answer
800
views
Finding the execution time of a program in pascal
I want to find the execution time of a program I wrote in pascal but i dont know the syntax to do that.. is there a function that calculates it? I searched a little bit and found that people use the ...
1
vote
1
answer
81
views
My InsertionSort Program runs faster than MergeSort Program even with very large input. Why?
I am a beginner, I wanted to find out the time taken by my code to execute and find out if Insertion Sort(IS) takes more time than MergeSort(MS) (It is supposed to take more time for sufficiently ...
2
votes
1
answer
124
views
JavaScript - Why calls to function with initial arguments are faster?
I wanted to compare execution time of my implementation of calculationg square root to native Math.sqrt() in Node.js.
So I made some functions to test it:
function getDuration(func, argumentGenerator, ...
0
votes
1
answer
645
views
Simple Join Query Execution Time v/s Materialized View execution Time
I am looking for performance improvement of SQL (ORACLE)
Based on few examples I tried to compare execution time between simple join between two tables v/s same query with MatrializedView.
Both ...
0
votes
1
answer
1k
views
Best way to compare performance identical SQL queries with different executions?
I'm creating a query that will contain multiple temp tables and subqueries. I want to optimize the execution time by using the most efficient method of retrieving data along each step.
A couple years ...
0
votes
0
answers
89
views
Measure the time it takes to store data in the blockchain using Hyperledger Fabric
I used Hyperledger Fabric to build an application. For, chaincode and api I used JavaScript.
Now, I want to find out how much time it takes to store the data in the ledger. How can I do this?
0
votes
0
answers
82
views
Neo4j GDS algorithms execution time
I run the Dijkstra source-target shortest path algorithm in Neo4j (community edition) for 7 different graphs. The sizes of these graphs are as follows: 6,301 nodes - 8,846 nodes - 10,876 nodes - 22,...
1
vote
1
answer
490
views
Execution time of neo4j cypher query
I'm trying to find the execution time of GDS algorithms using the community edition of Neo4j. Is there any way to find it rather than query logging? Since this facility is specific to the enterprise ...
0
votes
0
answers
53
views
Threads execution time
Could some one explain why second thread taking much lesser time for same process
public class Main {
public static void main(String[] args) {
final String[] test = {
"...