Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
0 replies
25 views

I was trying to read data (chars) from a large text file (~250MB) in 1KB chunks and was very surprised that reading that file using either FileReader or BufferedReader takes exactly the same time, ...
sebkaminski16's user avatar
0 votes
1 answer
55 views

I have a folder containing huge numbers of files in many subfolders, and I want to select the files with a name that matches any of a specified list of patterns (regular expressions). My regular ...
Theodor Zoulias's user avatar
Advice
0 votes
13 replies
212 views

Java Tutorials site shows this example when discussing character streams: //The CopyLines example invokes BufferedReader.readLine and PrintWriter.println to do input and output one line at a time. ...
sebkaminski16's user avatar
Advice
0 votes
4 replies
149 views

here is my solution to the leetcode "longest consecutive sequence" problem: class Solution: def longestConsecutive(self, nums: List[int]) -> int: if len(nums) == 0: ...
Leopold's user avatar
-4 votes
0 answers
68 views

I have a brand new computer with Windows 11 and I am facing a performance issue with MySQL I do ovserve on any other machine on the network and I not know how to fix. The MySQL server is running on a ...
user1129682's user avatar
  • 1,111
-6 votes
1 answer
161 views

I have an object obj; and I then obtain an array arr of key-value pairs. Assuming that the key sets of obj and of arr are disjoint (i.e. no key appears in both) - how do I efficiently add all pairs in ...
einpoklum's user avatar
  • 137k
Advice
0 votes
1 replies
50 views

We all know that there's no wrong way to write code, and infinite possible ways to complete a task. Everyone codes differently. There are of course many ways to shorthand code, so the same code can be ...
Gill P's user avatar
  • 365
0 votes
0 answers
106 views

I’m currently studying Operating Systems at college, and my professor has started teaching us about threads and pipes in C. His teaching style is very practical — he expects us not only to understand ...
Matheus Ferreira's user avatar
0 votes
0 answers
50 views

TFORM is considered a great tool for manipulating large and symbolic equations. In this thread, I’d like to share my optimization problem, which concerns a very simple operation — equations expansion. ...
kozapdh's user avatar
0 votes
0 answers
20 views

I have a FlashList displaying a complex list of items. To optimize it, I am using getItemType, overrideItemLayout, and keyExtractor. Everything works perfectly in Expo Go and on a local build (npx ...
Mitansh's user avatar
1 vote
0 answers
49 views

I’m working on a Vue/Nuxt project where my client reports that the website is slow — especially when loading a selection window and when fetching JSON data. However, the slowness is not very ...
Umar umar's user avatar
Best practices
0 votes
0 replies
42 views

I'm working on a Next.js 14 app with several dynamic routes (e.g., /product/[id]) that render product details from a large dataset (around 50k+ records) stored in PostgreSQL. I'm using ...
Mina Golzari Dalir's user avatar
1 vote
0 answers
72 views

problem The time it takes to inflate is around 15ms ~ 8ms for a custom view, which is super long. long startTime = System.nanoTime(); LayoutInflater.from(context).inflate(R.layout.view_profile,...
Nor.Z's user avatar
  • 1,595
1 vote
0 answers
50 views

I’m running an application on JBoss 7 connected to a MariaDB database hosted on a separate AWS EC2 instance (c5.9xlarge). The SQL query execution itself is extremely fast (around 57ms), but when ...
TinGinard's user avatar
  • 387
0 votes
1 answer
133 views

I have a scenario where I need to insert multiple records at once. I want to achieve all two: Bulk insert multiple records at once (performance). Return Eloquent model instances for the inserted ...
Ləman Əmrahova's user avatar
4 votes
5 answers
366 views

I am looking for an efficient way to compute the union and intersection of time intervals (start–stop format) by group (id), while keeping the covariates associated with each interval. Each patient (...
Alex's user avatar
  • 43
-5 votes
1 answer
213 views

I'm writing code that must perform a dot product between a vector b and a matrix C, where the dot is performed between b and each line of C. I made two implementation, one in C++ and one in Python. ...
alexcrespao's user avatar
1 vote
0 answers
132 views

I’m using the PyTorch profiler to analyze sglang, and I noticed that in the CUDA timeline, some kernels show “Command Buffer Full”. This causes the cudaLaunchKernel time to become very long, as shown ...
plznobug's user avatar
  • 143
1 vote
0 answers
24 views

I’m testing YOLOv8n-pose models that share the exact same architecture, input size, hardware (GPU), framework, batch size, and precision settings. The only difference between them is the trained ...
Hạnh Nhi Đỗ's user avatar
-1 votes
1 answer
32 views

I'm testing EAS on an 8-core machine (2 big cores, 6 little cores) with kernel version 6.6. I've verified that the system configuration is correct, but the core EAS function is never called. I've ...
user776231's user avatar
3 votes
2 answers
148 views

I am confused why my application is somehow slower when I run it by executing the .exe file from the publish folder, compared to running it from Visual Studio debugger (F5). I use .NET 8.0 and this is ...
Viki Theolorado's user avatar
0 votes
1 answer
192 views

First, to define what I'm talking about, the "length" of a source is how many characters it has. Having more characters allows improving readability by using more descriptive function and ...
Vladimirs Kacs's user avatar
0 votes
0 answers
39 views

My single threaded program allocates and initializes a volatile block of memory on an unspecified hardware architecture. It then writes into this block in a loop using a stride equal to the cache line ...
mafu's user avatar
  • 33k
0 votes
0 answers
42 views

I'm trying to render a scrollable grid of videos in React Native. Currently, I'm storing the videos as .mp4 files on Google Cloud Storage then fetching and rendering them using react-native-video's ...
dazh's user avatar
  • 1
-2 votes
1 answer
81 views

I see in many existing ABAP programs that standard internal tables are declared without key fields, for instance: TYPES type_itab TYPE STANDARD TABLE OF sflight WITH DEFAULT KEY. DATA itab_0 TYPE ...
Sandra Rossi's user avatar

1
2 3 4 5
2056