Judge Lucy Koh lost her cool after Apple's legal team handed in a 75-page briefing covering 22 potential rebuttal witnesses that the company might want to call after Samsung finishes its case.
The Verge reports that with the jury out of the courtroom, judge Koh questioned why they would present such a lengthy document, remarking: "Unless you're smoking crack you know these witnesses aren't going to be called!"
Apple attorney William Lee replied: "First, your honour, I'm not smoking crack. I can promise you that."
The firm's legal team then agreed to slim down the document and insisted that they were not trying to overburden the court, which is deciding on a tit-for-tit dispute between the firms with billions of dollars at stake.
However, the Apple lawyers also claimed that it was possible to get through all the 22 witnesses, particularly as some of them had already been called by Samsung.
But Koh grew increasingly irritated as the conversation continued and warned the parties that they were wasting valuable trial time.
"I'm billing time because you all are being unreasonable," she said.
Koh, who has repeatedly called on the two firms to sort out their differences out of the court, appears keen to complete the trial on time.
She has given each side a maximum of 25 hours to make its case and closing arguments are due next week.
Shortly before the Apple exchange, Samsung called on damages expert Michael Wagner, who claimed that Apple had overestimated Samsung's profit margins.
The evidence he gave was intended to undermine Apple's claim that it was owed $2.5bn (£1.6bn) in damages over Samsung's alleged 'copying' of its designs for the iPhone and iPad.
Under cross-examination, Wagner admitted that his analysis had been based on data provided by Samsung.